﻿/* Fix PNG For ie6 */
* html .png {
position:relative;
behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
this.src = "http://intecom.vtc.vn/media/GlobalStyles/default/images/blank.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='scale')",
this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
);
}

/* Just IE 6 */
*html .df_ibtn input, *html .df_ibtn_disbale input {overflow: visible; padding: 0 8px 2px 3px;}
.df_ibtn, .df_ibtn_disable {display:inline !important; float: left;}
*html .df_btn a .btext, *html .df_btn_disable .btext {float:left;}


/* Fix for IE 6 - 7
----------------------------------- */
*html .frClr {
	visibility: hidden;
	clear: both;
	display: block;
	padding: 0;
	margin: 0;
	line-height: 1;
	height: 0;
	width: 100%;
	overflow-y: hidden;
	font-size: 0;
}

/* Input Button */
.df_ibtn input, .df_ibtn_disbale input {!line-height:23px;} /* Fix Disappearing text value in ie7 */
.button {
	!padding: 0 6px 0px;
	!overflow: visible;
	!line-height: 18px;
}


/* Resize And Align Image
========================================== */
/* Vertical Align a Cropped Image Into a DIV for IE 7 and lower */
.f_thumb a, .photo_large, .estorelogo_med, .dg_image {position: relative; display:block;}
.f_thumb img, .photo_large img, .estorelogo_med img, .dg_image img {
	position: absolute;
	top: 50%; margin-top: expression(-(this.height/2));
	left: 50%; margin-left: expression(-(this.width/2));
}
/* Vertical Align: Khong dung position Realtive & phai co chieu cao DivChua co dinh | Margin-top = (chieuCaoCoDinh_DivChua - ChieuRongImg)/2 */
.photo_small, .photo_medium {display:block;} /* Set display block when using SPAN */
.photo_medium img {margin-top:expression((80-(this.height))/2); vertical-align: bottom;}
.photo_small img {margin-top:expression((32-(this.height))/2); vertical-align: bottom;}
.photo_large img {margin-top:expression((280-(this.height))/2); vertical-align: bottom;}

/* Max width & Max height for Image */
.dg_image img{width:expression(this.width > 250 ? 250:true);  height:expression(this.height > 160 ? 160:true);}
.photo_large img {width:expression(this.width > 437 ? 437:true);  height:expression(this.height > 280 ? 280:true);}